package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.net.DoctorUserGetListTask.DoctorUserGetListRequest;
import com.smiier.skin.net.DoctorUserGetListTask.DoctorUserGetListResponse;
import com.smiier.skin.net.entity.UserWrapper;
import com.smiier.skin.util.GlobalSettings;

public class DoctorUserGetListTask extends
		NetTask<DoctorUserGetListRequest, DoctorUserGetListResponse> {

	public static class DoctorUserGetListRequest extends ORequest {
		public static final int DEFAULT_RECOMMEND_NO = 0;
		public static final int DEFAULT_RECOMMEND_YES = 1;
		public int sort = DEFAULT_RECOMMEND_NO;
		public long start;
		public int pagesize;
		public String province;
		public String city;
		public String skilled;
	}

	public static class DoctorUserGetListResponse extends OResponse {
		public UserList Res;
	}

	public static class UserList implements INoProguard {
		public int Count;
		public ArrayList<UserWrapper> Users;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL_TREATMENT
				+ "Client/TreatmentProject/doctorList";
		// http://123.57.73.61/Client/TreatmentProject/doctorList
		mRequestMethod = METHOD_GET;
	}

}
